import React, { useState, useEffect } from 'react'
import store from './redux/store'
import useRedux from './Far'
export default function Test() {
  useRedux()
  return (
    <div>
      test
      <hr />
      <p>{store.getState().count}</p>
      <button
        onClick={() => {
          store.dispatch({ type: 'sub' })
        }}
      >
        -
      </button>
    </div>
  )
}
